package main.java.game.item.potion;

import main.java.game.combatant.Hero;

public class LargePotion extends Potion {

	public LargePotion(String name, Double buyingPrice){
		super(name, buyingPrice);	
	}
	@Override
	public void use(Hero hero) {
		
		if(hero.getInitialLifePoints()>hero.getLifepoints()){
			hero.setLifepoints(hero.getInitialLifePoints());
		}
	}
	
	public String toString(){
		return "Large Potion";
	}

}
